/**
 *@Project:Data Mining Basic
 *@Package:basic
 *@Name:Instance.java
 *@Author:yexijiang
 *@Date:2008-6-29
 *@Decription:
 *The instance of the tuple.
 */
package basic;

import java.util.HashMap;
import java.util.Vector;

/**
 * The instance of the tuple
 */
public class Instance 
{

	public Vector<Attribute> m_Attributes;
	
	public Instance(Vector<Attribute> attributes)
	{
		m_Attributes = attributes;
	}
	
	public Attribute getAttribute(int index)
	{
		return m_Attributes.get(index);
	}
	
	public String toString()
	{
		String msg = "";
		for (int i = 0; i < m_Attributes.size(); ++i) {
			msg += m_Attributes.get(i).toString() + "\t";
		}
		return msg;
	}
	
}
